<template>
  <div>
    你好
  </div>
</template>

<script>
import axios from 'axios'

export default {
  name: 'Demo',
  created () {
    console.log('created')
    axios.defaults.headers.common['token'] = 'token'
    axios.get('api/test/test').then(res => {
      console.log('res', res)
    }).catch(err => {
      console.log('err:', err)
    })
  }
}
</script>

<style scoped>

</style>
